/* Lac Viet ERP                                                
 * Copyright (c) 2013 Lac Viet                                 
 * http://www.lacviet.com.vn                                   
 *=============================================================
 * File name            : MO_tblModels.cs         
 * Created by           : Auto - 04/23/2014 15:03:45                     
 * Last modify          : Auto - 04/23/2014 15:03:45                     
 * Version              : 1.0                                  
 * ============================================================
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace LineOfBusiness.Poco
{
	[Serializable]
	public partial class MO_tblModels : BaseEntity
	{
		public MO_tblModels()
		{
		}

	    #region Properties

		private string _ModelID;

        [Key]
		[RegularExpression(@"[a-zA-Z0-9_-]*")]
		[Required]
        [MaxLength(20)]
        public string ModelID 
		{ 
			get
			{
                return _ModelID;
			}
			set 
			{ 
                _ModelID = value;
			} 
		}

		private string _ModelName;
        [MaxLength(100)]
        public string ModelName 
		{ 
			get
			{
                return _ModelName;
			}
			set 
			{ 
                _ModelName = value;
			} 
		}

		private string _ModelType;
        [MaxLength(1)]
        public string ModelType 
		{ 
			get
			{
                return _ModelType;
			}
			set 
			{ 
                _ModelType = value;
			} 
		}

		private string _EmployeeID;
        [MaxLength(20)]
        public string EmployeeID 
		{ 
			get
			{
                return _EmployeeID;
			}
			set 
			{ 
                _EmployeeID = value;
			} 
		}

		private bool _Finished;
        public bool Finished 
		{ 
			get
			{
                return _Finished;
			}
			set 
			{ 
                _Finished = value;
			} 
		}

		private DateTime? _BeginDate;
        public DateTime? BeginDate 
		{ 
			get
			{
                return _BeginDate;
			}
			set 
			{ 
                _BeginDate = value;
			} 
		}

		private DateTime? _EndDate;
        public DateTime? EndDate 
		{ 
			get
			{
                return _EndDate;
			}
			set 
			{ 
                _EndDate = value;
			} 
		}

		private string _ItemID;
		[Required]
        [MaxLength(20)]
        public string ItemID 
		{ 
			get
			{
                return _ItemID;
			}
			set 
			{ 
                _ItemID = value;
			} 
		}

		private string _SONo;
        [MaxLength(20)]
        public string SONo 
		{ 
			get
			{
                return _SONo;
			}
			set 
			{ 
                _SONo = value;
			} 
		}

		private DateTime? _CreatedDate;
        public DateTime? CreatedDate 
		{ 
			get
			{
                return _CreatedDate;
			}
			set 
			{ 
                _CreatedDate = value;
			} 
		}

		private string _UserID;
        [MaxLength(20)]
        public string UserID 
		{ 
			get
			{
                return _UserID;
			}
			set 
			{ 
                _UserID = value;
			} 
		}

		private byte[] _Image;
        [MaxLength(2147483647)]
        public byte[] Image 
		{ 
			get
			{
                return _Image;
			}
			set 
			{ 
                _Image = value;
			} 
		}

		private string _PathFile;
        [MaxLength(100)]
        public string PathFile 
		{ 
			get
			{
                return _PathFile;
			}
			set 
			{ 
                _PathFile = value;
			} 
		}
		/// <summary>
        /// Column: CF_tblEmployees.EmployeeID
        /// </summary>
		public CF_tblEmployees CF_tblEmployees { get;set; }

		/// <summary>
        /// Column: IV_tblItemLists.ItemID
        /// </summary>
		public IV_tblItemLists IV_tblItemLists { get;set; }


        #endregion
	}
}
